package com.runewbie.common.constant;

import lombok.Getter;

/**
 * @author: li_jian
 * @version: 1.0
 * @date: 2020/5/7 22:22
 * @description： 商品服务的常量
 */
public class ProductConstant {

    /**
     * 属性枚举
     */
    public enum AttrEnum {

        ATTR_TYPE_BASE(1, "基本属性", "base"),
        ATTR_TYPE_SALE(0, "销售属性", "sale");

        @Getter
        private int code;
        @Getter
        private String msg;
        @Getter
        private String attrType;

        AttrEnum(int code, String msg, String attrType) {
            this.code = code;
            this.msg = msg;
            this.attrType = attrType;
        }


    }

    /**
     * 图片枚举
     */
    public enum SkuImageEnum {
        IMG_TYPE_DEFAULT(1, "默认图片"),
        IMG_TYPE_NOT_DEFAULT(0, "非默认图片");

        @Getter
        private int code;
        @Getter
        private String msg;

        SkuImageEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
    /**
     * spu发布状态枚举
     */
    public enum StatusEnum {
        NEW_SPU(0, "新建"),
        SPU_UP(1, "商品上架"),
        SPU_DOWN(2, "商品下架");

        @Getter
        private int code;
        @Getter
        private String msg;

        StatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
